package com.alisls.demo.springcloud.service.user.dto.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 菜单DTO
 *
 * @author Ke Wang
 * @date 2020/11/5
 */
@ApiModel(description = "菜单DTO")
@NoArgsConstructor
@Getter
@Setter
@ToString
public class MenuDTO extends ResourceDTO {

    /**
     * 菜单类型
     * menuType: 1-目录；2-叶子
     */
    @ApiModelProperty(value = "菜单类型", required = true, allowableValues = "1, 2", example = "1")
    private String menuType;

    /**
     * 菜单图标
     */
    private String menuIcon;

    /**
     * 是否可见
     * visible: 0-不可见；1(或null)-可见
     */
    private Integer visible;

    /**
     * 是否虚拟节点
     * 虚拟节点将不会在主菜单中展示
     */
    private Integer virtual;

    /**
     * 菜单路径
     */
    private String url;

    /**
     * 排序值
     */
    private float position;

    /**
     * 是否删除
     */
    private Integer deleted;

}
